package com.gcb.service.impl;

import com.gcb.dao.CheckGroupDao;
import com.gcb.dao.SetMealDao;
import com.gcb.pojo.Setmeal;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author 35235
 * @Date 2021/8/12 12:18
 * @Version 1.0
 */
public class Test {
    @org.junit.Test
    public void test(){
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-dao.xml");
       SetMealDao setMealDao = (SetMealDao) context.getBean("setMealDao");
       CheckGroupDao checkGroupDao = (CheckGroupDao) context.getBean("checkGroupDao");
//       Integer[] ids = checkGroupDao.findCheckItemIdsByCheckGroupId(6);
//       List<CheckItem> checkItems = new ArrayList<>();
        checkGroupDao.findCheckGroupById(5);
        Setmeal setmeal = setMealDao.findById4Detail(5);

//            System.out.println(setmeal);

        assert true;
        System.out.println("1");
        assert 1==2;{
        System.out.println("2");}
        System.out.println("3");
    }
}
